package com.nio.c2_Path;


import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @version No one is coming, unless you change yourself!!!
 * @author： pang-yun
 * @date： 2021-05-31 15:01
 */

public class FileMy {
    public static void main(String[] args) throws IOException {
        Path path = Paths.get("data.txt");
        System.out.println(Files.exists(path));

    }
}
